package com.xca.bindingwork.service;

import com.xca.bindingwork.entity.PetEntity;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface PetService {
    @GET("pet/index")
    Observable<PetEntity> getData(@Query("key") String key,
                                  @Query("page") int page,
                                  @Query("num") int num,
                                  @Query("type") int type
    );

    @GET("pet/index")
    Observable<PetEntity> getData2(@Query("key") String key,

                                   @Query("page") int page,
                                   @Query("num") int num,
                                   @Query("name") String name
    );
}
